Pod::Spec.new do |s|
  s.name             = 'TestPrivateLib' # 私有库的名字
  s.version          = '2.0.0' # 私有库的版本，需要和远程仓库的某个tag一样
  s.summary          = '测试私有库' # 私有库的减短描述
# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!
  s.description      = <<-DESC # 私有库的详细描述，要比summary长
这是一个测试私有库，用来练习CocoaPods私有库的创建过程
                       DESC

  s.homepage         = 'https://gitee.com/DryoungDr/TestPrivateLib' # 私有库的主页
  s.license          = { :type => 'MIT', :file => 'LICENSE' } # 许可证文件
  s.author           = { 'ineyee' => 'ineyee@foxmail.com' } # 作者
  s.source           = { # 私有库的地址
    :git => 'git@gitee.com:DryoungDr/TestPrivateLib.git',
    :tag => s.version.to_s
  }

  s.ios.deployment_target = '10.0' # 私有库支持的系统及最低版本

  s.subspec 'Model' do |m| # m为子库的别称，并且不同的子库别称可以相同
    m.source_files = 'TestPrivateLib/Classes/Model/**/*' # 私有库源文件的路径，相对于podsepc文件的相对路径
    m.dependency 'MJExtension', '= 1.0.0' # 子库需要依赖的三方库
  end
  
  s.subspec 'View' do |v|
    v.source_files = 'TestPrivateLib/Classes/View/**/*'
  end
  
  s.subspec 'ViewController' do |vc|
    vc.source_files = 'TestPrivateLib/Classes/ViewController/**/*'
  end
  
  s.resource_bundles = { # 私有库资源文件的路径
   'TestPrivateLib' => ['TestPrivateLib/Assets/*.png']
  }
  
  s.dependency 'SDWebImage', '= 4.0.0'
  
end
